﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using You.Niao.User.Model;

namespace You.Niao.User.IDAL
{
   public interface IUser
    {
       /// <summary>
       ///用户登陆
       /// </summary>
       /// <param name="user"></param>
       /// <returns></returns>
       Users UserLogin(Users user);
       
       bool QQLogin(Users user);
      
       bool xinlangLogin(Users user);

       /// <summary>
       /// 创建用户
       /// </summary>
       /// <param name="model"></param>
       /// <returns></returns>
       bool CreateUser(Users model);

       bool CheckNickName(string NickName);
      
       /// <summary>
       /// 检查邮件
       /// </summary>
       /// <param name="Email"></param>
       /// <returns></returns>
       bool CheckEmail(string Email);

       /// <summary>
       /// 用户验证
       /// </summary>
       /// <param name="code"></param>
       /// <returns></returns>
       Users UserVerification(string code);

       /// <summary>
       /// 获取用户ID
       /// </summary>
       /// <param name="UserID"></param>
       /// <returns></returns>
       Users GetUserInfo(int UserID);

       /// <summary>
       /// 更新用户资料
       /// </summary>
       /// <param name="users"></param>
       /// <returns></returns>
       bool Update(Users users);
    }
}
